package com.heima.apis.article;

import com.heima.model.article.pojos.ApAuthor;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

@Api(value = "Author-作者信息管理",tags = "Author-作者信息管理")
public interface AuthorControllerApi {

    /**
     * 保存
     * @param apAuthor
     * @return
     */
    @ApiOperation("保存作者信息")
    ResponseResult save(@RequestBody ApAuthor apAuthor);

    /**
     *根据ap_user_id查询
     * @param userId
     * @return
     */
    @ApiOperation("按照app端用户id查询用户")
   ApAuthor findByUserId(@PathVariable("userId") Integer userId);
}
